<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<script>
//获取本机语言
function get_lang(){
  //var _agent = navigator.userAgent.toLowerCase();
  var _lang = '';
  if (navigator.language) { _lang = '.' + navigator.language.toLowerCase(); } else if (navigator.browserLanguage) { _lang = '.' + navigator.browserLanguage.toLowerCase(); }

  //cn,en,jp,kr,hk
  if (_lang.indexOf('zh') > 0) { return('cn'); }
  if (_lang.indexOf('en') > 0) { return('en'); }
  if (_lang.indexOf('ja') > 0) { return('jp'); }
  if (_lang.indexOf('ko') > 0) { return('kr'); }

  //ru,fi,mg,pt,sv
  if (_lang.indexOf('ru') > 0) { return('ru'); }
  if (_lang.indexOf('fi') > 0) { return('fi'); }
  if (_lang.indexOf('mg') > 0) { return('mg'); }
  if (_lang.indexOf('pt') > 0) { return('pt'); }
  if (_lang.indexOf('sv') > 0) { return('sv'); }

  //nb,id,fr,it,vi
  if (_lang.indexOf('no') > 0) { return('nb'); }
  if (_lang.indexOf('id') > 0) { return('id'); }
  if (_lang.indexOf('fr') > 0) { return('fr'); }
  if (_lang.indexOf('it') > 0) { return('it'); }
  if (_lang.indexOf('vi') > 0) { return('vi'); }

  //de,th,tr,es,nl
  if (_lang.indexOf('de') > 0) { return('de'); }
  if (_lang.indexOf('th') > 0) { return('th'); }
  if (_lang.indexOf('tr') > 0) { return('tr'); }
  if (_lang.indexOf('es') > 0) { return('es'); }
  if (_lang.indexOf('nl') > 0) { return('nl'); }

  //da,el
  if (_lang.indexOf('da') > 0) { return('da'); }
  if (_lang.indexOf('el') > 0) { return('el'); }

  return('en'); //默认英文
}

function init() {
  var _lang = get_lang();

  //标准22种语言
  var _lang_arr = 'cn,en,jp,kr,hk,ru,fi,mg,pt,sv,nb,id,fr,it,vi,de,th,tr,es,nl,da,el';
  //语言的索引值
  var _lang_index = Math.floor(_lang_arr.indexOf(_lang) / 3);

  //多语言翻译顺序
  var _language = [
    //cn,en,jp,kr,hk
    ['请参考以下方法连接到网络','Wi-Fi：手机系统【设置】—＞【Wi-Fi】—＞【选取网络】选择一个可用的Wi-Fi热点接入。', '如果您已连接Wi-Fi网络，请检查您所连接的Wi-Fi热点是否已接入互联网，或该热点是否已允许您的设备访问互联网。', '蜂窝数据：手机系统【设置】—＞【蜂窝数据】。（启用后运营商可能会收取数据通讯费用）。'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['ネットワークの設定方法は以下の通りである。', 'Wi-Fi : 携帯端末で「設定」—＞「Wi-Fi」—＞「ネットワークを選択」利用可能なWi-Fiホットスポットを選択してください。', 'Wi-Fiネットワークに接続した場合，接続したWi-Fiホットスポットはインターネットに接続ができるかどうかを確認してください。または、当のホットスポットはあなたのデバイスがインターネットにアクセスすることを許すかどうかを確認してください。', 'モバイルデータ通信 : 携帯端末で「設定」—＞「モバイルデータ通信」をオンにする（オンにすると携帯キャリアがデータ通信料金を取るかもしれない）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],

    //ru,fi,mg,pt,sv
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],

    //nb,id,fr,it,vi
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],

    //de,th,tr,es,nl
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],

    //da,el
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）'],
    ['Please do the following to enable network connection', 'Wi-Fi：On your device,  go to “Settings” —＞ “Wi-Fi” —＞”choose a network”, and select an available Wi-Fi hotspot to access.', 'If you have accessed to Wi-Fi network Check whether the Wi-Fi hotspot chosen connects to internet and allows your device to access internet.', 'Cellular：On your device,  go to “Settings”—＞”Cellular” （You may need to pay your carrier for the service）']
  ];

  //赋值
  document.getElementById('label_title').innerHTML = _language[_lang_index][0];
  document.getElementById('label_line1').innerHTML = _language[_lang_index][1];
  document.getElementById('label_line2').innerHTML = _language[_lang_index][2];
  document.getElementById('label_line3').innerHTML = _language[_lang_index][3];
}
</script>
<body style="background-color: #d4f0fe" onLoad="init()">
<span style="font-size: 14px;"><b><label id="label_title"></label></b></span>
<hr style="border:1px dashed #999999;"/>
<span style="font-size: 14px; color:#666666;">　<label id="label_line1"></label></span><br><br>
<span style="font-size: 14px; color:#666666;">　<label id="label_line2"></label></span><br><br>
<span style="font-size: 14px; color:#666666;">　<label id="label_line3"></label></span>
</body>
</html>
